package c.e.a.b.e.c;

import java.util.Iterator;
import java.util.Map;
import java.util.Map.Entry;

/* compiled from: com.google.android.gms:play-services-measurement-base@@18.0.0 */
public final class a6 implements x5 {
    public final Map<?, ?> a(Object obj) {
        return (y5) obj;
    }

    public final Object b(Object obj) {
        ((y5) obj).a = false;
        return obj;
    }

    public final Object c(Object obj, Object obj2) {
        obj = (y5) obj;
        y5 y5Var = (y5) obj2;
        if (!y5Var.isEmpty()) {
            if (!obj.a) {
                obj = obj.isEmpty() ? new y5() : new y5(obj);
            }
            obj.b();
            if (!y5Var.isEmpty()) {
                obj.putAll(y5Var);
            }
        }
        return obj;
    }

    public final boolean d(Object obj) {
        return !((y5) obj).a;
    }

    public final Map<?, ?> e(Object obj) {
        return (y5) obj;
    }

    public final v5<?, ?> f(Object obj) {
        w5 w5Var = (w5) obj;
        throw new NoSuchMethodError();
    }

    public final Object g(Object obj) {
        y5 y5Var = y5.b;
        return y5Var.isEmpty() ? new y5() : new y5(y5Var);
    }

    public final int h(int i, Object obj, Object obj2) {
        y5 y5Var = (y5) obj;
        w5 w5Var = (w5) obj2;
        if (y5Var.isEmpty()) {
            return 0;
        }
        Iterator it = y5Var.entrySet().iterator();
        if (!it.hasNext()) {
            return 0;
        }
        Entry entry = (Entry) it.next();
        entry.getKey();
        entry.getValue();
        throw new NoSuchMethodError();
    }
}
